import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TestMain {


	/**
	 * @param args
	 */
	public static void main(String[] args) {
	    String imsi = "";
	    byte[] cmdContent = null;;
        try{
            cmdContent = new String("A60000056733339").getBytes("US-ASCII");
            boolean isValidImsi = true;
            for(int i=0; i<15; i++) {
                if (cmdContent[i] < 0x30 || cmdContent[i] > 0x39) {
                    imsi = "";
                    isValidImsi = false;
                    break;
                }
            }
            
            char a = '0';
            if (imsi.isEmpty()) {
                System.out.println("isEmpty");
            }
            
            System.out.println("isValidImsi:" + isValidImsi + "  a:" + Byte.valueOf((byte)a));
        }catch(UnsupportedEncodingException e){
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

	}

	
}
